from django.conf.urls import re_path
from . import views

urlpatterns =[
    re_path('^api/v1.0/session/$', views.LoginView.as_view()),
    re_path('^api/v1.0/users/$', views.RegisterView.as_view()),
    # 用户中心接口
    re_path(r'^api/v1.0/user/$', views.UserInfoView.as_view()),
    re_path(r'^api/v1.0/user/name/$', views.UserNameModificationView.as_view()),
    re_path(r'^api/v1.0/user/auth/$', views.UserRealNameAuthentication.as_view()),
    re_path(r'^api/v1.0/user/avatar/$', views.AddtouxiangView.as_view()),
]
